package cn.stylefeng.guns.modular.packreview.mapper;

import cn.stylefeng.guns.modular.basic.model.result.JHZYJDResult;
import cn.stylefeng.guns.modular.packreview.entity.PackReview;
import cn.stylefeng.guns.modular.packreview.model.params.PackReviewParam;
import cn.stylefeng.guns.modular.packreview.model.result.PackReviewResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 打包复核 Mapper 接口
 * </p>
 *
 * @author wp
 * @since 2025-07-05
 */
public interface PackReviewMapper extends BaseMapper<PackReview> {

    /**
     * 获取列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    List<PackReviewResult> customList(@Param("paramCondition") PackReviewParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") PackReviewParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    Page<PackReviewResult> customPageList(@Param("page") Page page, @Param("paramCondition") PackReviewParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") PackReviewParam paramCondition);

    void updateByTrackNumber(@Param("paramCondition") PackReviewParam packReviewParam);

    void deleteByTrackNumber(@Param("trackNumber") String trackNumber);

    void insertPackReview(PackReview packReview);

    List<JHZYJDResult> findFhzyjdListByDeptId(@Param("deptId") Long deptId, @Param("currentDate") String currentDate);
}
